package com.oyc.demo.easyexcel;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class OKNOConstraintValidator implements ConstraintValidator<OKNO, String> {
    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
    	if(value!=null&&value.trim().length()>0){
    		  return value.equals("合格") || value.equals("不合格");
    	}
    	return true;
    }
}